import { IEditor } from '@kuaitu/core';
import { useI18n } from 'vue-i18n';

import { type Selector } from './useSelectListen';

export default function useSelect() {
  const fabric = inject('fabric');
  const { t } = useI18n();
  const canvasEditor = inject('canvasEditor') as IEditor;
  const mixinState = inject('mixinState') as Selector;

  return {
    fabric,
    canvasEditor,
    mixinState,
    t,
  };
}
